package com.atguigu.serviceedu.feign.hystrix;

import com.atguigu.commonutils.R;
import com.atguigu.serviceedu.feign.VideoFeignService;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class VodFileDegradeFeignClient implements VideoFeignService {
    @Override
    public R removeVideo(String videoId) {
        return R.error().message("远程服务调用失败");
    }

    @Override
    public R removeVideoByIds(List<String> sourceIds) {
        return R.error().message("远程服务调用失败");
    }

    @Override
    public String getUploadVideoTitle(String sourceId) {
        return R.error().message("远程服务调用失败").toString();
    }
}
